package com.zbkj.service.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.common.model.Warehouse;
import com.zbkj.common.request.WarehouseSearchRequest;
import com.zbkj.common.response.SaleRoomOrWarehouseResponse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 仓库表 Mapper 接口
 * </p>
 *
 * @author keNan
 * @since 2025-06-05
 */
public interface WarehouseDao extends BaseMapper<Warehouse> {

    /**
     * 查询列表
     *
     * @param request
     * @return
     */
    List<Warehouse> selectListBySearch(@Param("request") WarehouseSearchRequest request);

    /**
     * 分页查询仓库列表
     *
     * @return
     */
    List<SaleRoomOrWarehouseResponse> listByType();
}
